package com.pronosticnews.server.services;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.pronosticnews.client.services.JourneeService;
import com.pronosticnews.server.domain.dao.JourneeDao;
import com.pronosticnews.server.domain.model.Journee;
import com.pronosticnews.shared.model.JourneeDto;

import fr.ysa.persistence.IDao;
import fr.ysa.services.ImplService;

@Service("journeeService")
@Transactional
public class JourneeServiceImpl extends ImplService<Journee, JourneeDto> implements
		JourneeService {

	@Autowired
	JourneeDao journeeDao;

	@Override
	public IDao<Journee> getDao() {
		return journeeDao;
	}

	@Override
	public Class<Journee> getEntityClass() {
		return Journee.class;
	}

	@Override
	public Class<JourneeDto> getEntityDtoClass() {
		return JourneeDto.class;
	}

}
